package ht.dao;

import ht.domain.Relation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by yanlin on 2017/11/25.
 */
public interface RelationDao {

    public List<Relation> getAllRelation();

    public Relation getRelation(@Param("rela") String rela);

    public int getRelationCount();

    public List<Relation> getPageRelation(int start, int limit);

    public int addRelation(Relation relation);

    public int upptRelation(Relation relation);

    public int deleRelation(@Param("rela") String rela);
}
